<!DOCTYPE html>
<html lang="en" th:fragment="layout (title, content,popwin)" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:replace="${title}">Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">客服客理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    <span th:text="${session.user.userName}"></span>
                </a>
            </li>
            <li class="layui-nav-item"><a href="/logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed" th:if="${session.user.isKf} == -1">
                    <a class="" href="/admin/manage">账号管理</a>
                </li>
                <li class="layui-nav-item layui-nav-itemed" th:if="${session.user.isKf} == 0">
                    <a class="" href="/kf/manage">客服管理</a>
                </li>
                <li class="layui-nav-item" th:if="${session.user.isKf} == 0">
                    <a href="/wx/manage">微信管理</a>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;" th:include="${content}">内容主体区域</div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>

</div>
<div th:replace="${popwin}"></div>
</body>
</html>